#ifndef _HOLYSHIELD_HITVIEW
#define _HOLYSHIELD_HITVIEW

//#include <config.h>
#include <gtk/gtk.h>
#include <libgnomevfs/gnome-vfs.h>

#include "holyshield.h"

void hitview_clear (void);
void hitview_reload (void);
void hitview_reload_cancel (void);
gboolean hitview_reload_in_progress (void);
void hitview_abort_reload_callback (GnomeVFSAsyncHandle *handle, GnomeVFSResult result, gpointer data);
gboolean hitview_append_hit (Hit *h);
void hitview_toggle_column_visibility (GtkWidget *widget, gint colnum);

Hit *hitview_get_selected_hit (void);
GList *hitview_get_all_hits (void);

void hitview_lookup_selected_hit (void);
void copy_selected_hit (void);
const Hit *get_last_hit (void);

void hitview_disable_events_selected_source (void);
void hitview_disable_events_selected_port (void);

void hitview_allow_host (void);
void hitview_allow_service (void);
void hitview_allow_service_from (void);

void create_hitview_page (GtkBuilder *builder);

enum
{
	HITCOL_TIME,
	HITCOL_DIRECTION,
	HITCOL_IN,
	HITCOL_OUT,
	HITCOL_PORT,
 	HITCOL_SOURCE,
	HITCOL_DESTINATION,
	HITCOL_LENGTH,
	HITCOL_TOS,
	HITCOL_PROTOCOL,
	HITCOL_SERVICE,
	HITCOL_COLOR,
	NUM_HITCOLUMNS
};

#endif
